package com.zyc.annotation;

import com.zyc.spring.CustomScannerRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 包扫描自定义注解
 * @author zyc
 * @create 2022--05--27 17:09
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Import(CustomScannerRegistrar.class)
@Documented
public @interface RpcScan {

    /**
     * 扫描那些包
     */
    String[] basePackage();
}
